package com.zhangxu.basemvp.api;

import com.zhangxu.basemvp.bean.UserBean;
import com.zhangxu.basemvp.base.BaseResponse;

import java.util.HashMap;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Url;

/**
 * Time:2019/4/10
 * Author:zhangxu
 */
public interface LoginApi {
    @POST("login")
    Call<BaseResponse<UserBean>> login(@Body HashMap<String, String> user);

    @POST("login")
    Observable<BaseResponse<UserBean>> toLogin(@Body HashMap<String, String> user);
}


